#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

# import pysolr
#
# solr = pysolr.Solr('http://10.10.31.22:8080/solr/#/plosp_pdf', timeout=10)
#
# results = solr.search('investigating')
#
# for result in results:
#     print result

import solr

s = solr.SolrConnection('http://10.10.31.22:8080/solr/plosp_pdf/')

result = s.select("fileContent:\"EGFR\"",rows=100)
for hit in result.results:
    print hit['title']